package org.poc.camel;

import org.apache.camel.LoggingLevel;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.main.Main;

public class CamelMain2 {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		Main camelMain = new Main();
		camelMain.enableHangupSupport();
		camelMain.addRouteBuilder(new RouteBuilder() {
			public void configure() {

				from("vm:dvm")
				.log(LoggingLevel.INFO, "Main2 received ${body}")
				.to("file:src/main/resources/data/tmp-out");

			}
		});

		camelMain.run();

	}

}
